import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 前纺班组产量*/
// 创建
export const machineSpinReportFrontPlanGroupYieldCreate = (data) => postRequest('/machine/spinreport/front-plan-group-yield/create', data);

// 更新
export const machineSpinReportFrontPlanGroupYieldUpdate = (data) => putRequest('/machine/spinreport/front-plan-group-yield/update', data);

// 删除
export const machineSpinReportFrontPlanGroupYieldDelete = (params) => deleteRequest('/machine/spinreport/front-plan-group-yield/delete', params);

// 获得
export const machineSpinReportFrontPlanGroupYieldGet = (params) => getRequest('/machine/spinreport/front-plan-group-yield/get', params);

// 分页
export const machineSpinReportFrontPlanGroupYieldPage = (params) => getRequest('/machine/spinreport/front-plan-group-yield/page', params);

// 导出 Excel
export const machineSpinReportFrontPlanGroupYieldExportExcel = (params) => getRequest('/machine/spinreport/front-plan-group-yield/export-excel', params);
export const machineSpinReportFrontPlanGroupYieldUpdateAuditState = (data) => postRequest('/machine/spinreport/front-plan-group-yield/update-audit-state', data);

export const reportProductionOrderMachineGroupYield = (data) => getRequest('/report/production/order/machine/group-yield', data);

export const iotCollectDataCountPage = (params) => getRequest('/production/machine-shift-output/page', params);
export const productionMachineShiftOutputGet = (params) => getRequest('/production/machine-shift-output/get', params);// 根据id查
export const productionMachineShiftOutputUpdate = (data) => putRequest('/production/machine-shift-output/update', data);// 班次机台产能记录
export const productionMachineShiftOutputGetProductDayData = (data) => getRequest('/production/machine-shift-output/get-product-day-data-pc', data);// 获得品种每天数据
export const productionMachineShiftOutputCurrentPage = (data) => getRequest('/production/machine-shift-output/current-page', data);// 班次机台产能记录-实时
export const productionPrdNoticeMachineChangeProductionVariety = (params) => getRequest('/production/prd-notice-machine-change/production/variety', params);

export const reportAfterSpinningMonthData = (params) => getRequest('/report/after/spinning/month/data', params);

// 产线产量日报表
export const productionLineDayData = (params) => getRequest('/production/line/day/data', params);
// 产线产量月报表
export const productionLineMonthData = (params) => getRequest('/production/line/month/data', params);
// 生成人员工资
export const machineSpinReportFrontPlanGroupYieldGenerateEmpSalary = (data) => postRequest('/machine/spinreport/front-plan-group-yield/generate-emp-salary', data);
// 更新人员汇总
export const machineSpinReportFrontPlanGroupYieldUpdateGroup = (data) => putRequest('/machine/spinreport/front-plan-group-yield/update-group', data);

export const reportProductionOrderMachineGroupYieldTwo = (data) => getRequest('/report/production/order/machine/group-yield-two', data);

// 末并月报表
export const reportFrontSpinningMbMonthData = (data) => getRequest('/report/front/spinning/mb/month/data', data);
export const iotCollectDataCountExportExcel = (params) => getRequest('/iot/collect-data/count-export-excel', params, 'arraybuffer');
export const iotCollectDataCountInfo = (params) => getRequest('/iot/collect-data/count-info', params);

/**
 * 前纺班组产量
 * */
export const productionGroupProductionSalaryCreate = (data) => postRequest('/production/group-production-salary/create', data);
export const productionGroupProductionSalaryUpdate = (data) => putRequest('/production/group-production-salary/update', data);
export const productionGroupProductionSalaryDelete = (params) => deleteRequest('/production/group-production-salary/delete', params);
export const productionGroupProductionSalaryGet = (params) => getRequest('/production/group-production-salary/get', params);
export const productionGroupProductionSalaryPage = (params) => getRequest('/production/group-production-salary/page', params);
export const productionGroupProductionSalaryUpdateAuditState = (data) => postRequest('/production/group-production-salary/update-audit-state', data);
export const productionGroupProductionSalaryGetData = (data) => getRequest('/production/group-production-salary/get-data', data);

